/*
 * Copyright (c) 2015 smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.ipc;

/**
 * 常量定义
 * 
 * @author KongXiangyu
 * @since 2015-09-11
 */

public class IpcConstants {

	/** 工控机请求指令参数名 **/
	public static final String IPC_COMMAND_NAME = "command";
	/** 工控机请求指令方法参数名 **/
	public static final String IPC_COMMAND_METHOD_NAME = "method";
	/** 工控机ID参数名 **/
	public static final String IPC_ID = "ipcId";
	/** 工控机通信时间格式 **/
	public static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss";
	/** 工控机通信日期格式 **/
	public static final String DATE_FORMAT = "yyyy-MM-dd";
	/** 工控机初始化指令 **/
	public static final String IPC_COMMAND_INIT = "ipc.init";
	/** 工控机查询设备指令 **/
	public static final String IPC_COMMAND_DEVICE_QUERY = "ipc.device.query";
	/** 工控机开启小区门指令 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_OPEN = "ipc.residence.door.open";

	/** 工控机访问设备方式 -内网 **/
	public static final String IPC_ACCESS_TYPE_LOCALNETWORK = "localnetwork";
	public static final String IPC_ACCESS_TYPE_OUTERNETWORK = "outernetwork";

	/** 工控机--开启小区门--奥普 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_OPEN_AOPU = "ipc.residence.door.open.aopu";
	/** 工控机--小区门状态--奥普 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_AOPU_STATUS = "ipc.residence.door.aopu.status";

	/** 工控机记录日志指令 **/
	public static final String IPC_COMMAND_LOG_RECORD = "ipc.log.record";
	/** 工控机--开启单元门--海康 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK = "ipc.residence.door.hk";

	/** 工控机单元门关门指令 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK_CLOSE = "0";
	/** 工控机单元门开门指令 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK_OPEN = "1";
	/** 工控机单元门常开指令 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK_OPEN_LONG = "2";
	/** 工控机单元门常关指令 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK_CLOSE_LONG = "3";
	/** 工控机单元门操作门序号 **/
	public static final Long IPC_COMMAND_RESIDENCE_DOOR_HK_INDEX_ALL = -1L;

	/** 工控机--单元门对讲服务--海康 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_TALK_HK = "ipc.residence.door.talk.hk";

	/** 工控机单元门对讲服务-开始 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_START = "0";
	/** 工控机单元门对讲服务-结束 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_STOP = "1";
	/** 工控机单元门对讲服务-音频格式:G722 **/
	public static final byte IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_IS_G722 = 0;
	/** 工控机单元门对讲服务-音频格式:G711_U **/
	public static final byte IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_IS_G711_U = 1;
	/** 工控机单元门对讲服务-音频格式:G711_A **/
	public static final byte IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_IS_G711_A = 2;
	/** 工控机单元门对讲服务-音频格式:G726 **/
	public static final byte IPC_COMMAND_RESIDENCE_DOOR_TALK_HK_IS_G726 = 6;

	/** 工控机--单元门视频预览服务--海康 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_VIDEO_HK = "ipc.residence.door.video.hk";

	/** 工控机单元门视频预览服务 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_VIDEO_HK_REVIEW_START = "0";
	/** 工控机单元门视频预览服务 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_VIDEO_HK_REVIEW_STOP = "1";

	/** 工控机--单元门视频历史记录服务--海康 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_VIDEO_HISTORY_HK = "ipc.residence.door.video.history.hk";
	/** 工控机单元门状态服务 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_HK_STATUS = "ipc.residence.door.hk.status";
	/** 工控机--单元门初始化服务--海康 **/
	public static final String IPC_COMMAND_RESIDENCE_DOOR_INIT_HK = "ipc.residence.door.init.hk";

}
